// src/components/AppSuspense.vue
<template>
  <Suspense>
    <template #default>
      <router-view />
    </template>
    <template #fallback>
      <div class="global-loading">
        <BaseLoading />
        <p>正在加载页面内容...</p>
      </div>
    </template>
  </Suspense>
</template>

<script setup>
import { Suspense } from 'vue';
import BaseLoading from './BaseLoading copy.vue';
</script>

<style scoped>
.global-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
}
</style>